package com.android.demo;


import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.widget.EditText;

import com.android.demo.widget.VirtualKeyboard;

public class TestVirtualKeyboard extends Activity {
	EditText edit;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.virtual_keyboard_main);
        edit = (EditText) findViewById(R.id.edit);
//        VirtualKeyboard kbd = (VirtualKeyboard) findViewById(R.id.kbd);
//        kbd.bringToFront();
//        kbd.setUp(edit);
        int intCurrentOrientation=this.getRequestedOrientation();
    }

	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
		
		edit.setText(newConfig.keyboard+"|"+newConfig.keyboardHidden);
	}
    
	@Override
	public void setRequestedOrientation(int requestedOrientation) {
	// TODO Auto-generated method stub
	super.setRequestedOrientation(requestedOrientation);
	}
	@Override
	public int getRequestedOrientation() {
	// TODO Auto-generated method stub
	return super.getRequestedOrientation();
	}
}
